home *** CD-ROM | disk | FTP | other *** search
/ Aminet 16 / Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso / Aminet / dev / src / wangisrc.lha / wangi / z / ChunkCheck / chunkcheck.c < prev    next >
C/C++ Source or Header  |  1995-10-28  |  874b  |  28 lines

  1. #include <exec/types.h>
  2. #include <graphics/gfxbase.h>
  3. #include <proto/exec.h>
  4. #include <proto/graphics.h>
  5. #include <proto/dos.h>
  6.  
  7. void main( void )
  8. {
  9.     if( (GfxBase = (struct GfxBase *)OpenLibrary("graphics.library", 0)) &&
  10.         (DOSBase->dl_lib.lib_Version >= 36) )
  11.     {
  12.         Printf("You have graphics.library version %ld.%ld\n", GfxBase->LibNode.lib_Version,
  13.                                                               GfxBase->LibNode.lib_Revision);
  14.         if( GfxBase->LibNode.lib_Version >= 40 )
  15.             Printf("You have software chunky->planer support\n");
  16.         else
  17.             Printf("You do not have OS software chunky->planer support\n");
  18.         
  19.         if( GfxBase->ChunkyToPlanarPtr )
  20.             Printf("You have hardware chunky->planer support (at 0x%lx)\n", GfxBase->ChunkyToPlanarPtr);
  21.         else
  22.             Printf("You do not have hardware chunky->planer support\n");
  23.         
  24.         CloseLibrary((struct Library *)GfxBase);
  25.     }
  26. }
  27.  
  28.